<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
                    do —— while 
                    语法结构：
                        do {
                            逻辑体;
                        } while (判断条件);
                    执行顺序：
                        1. 初始化变量;
                        2. 执行逻辑体;
                        3. 判断条件
                        4.1 true 2、3、4步骤
                        4.2 false 跳出代码块
                */
        /* let i = 0;
        do {
            console.log('今晚吃鸡');
            i++;
        } while (i < 5); */

        console.log('案例---------------------------------------------');
        let i = 0;
        do {
            if ((i & 7 != 0) && (i % 10 != 7) && (parseInt(i / 10) != 7)) {
                console.log(i);
            }
            i++;
        } while (i < 100);


    </script>
</body>
</html>